package com.cn.transfer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.transfer.common.entity.SaSaleOrder;
import com.cn.transfer.common.entity.VvSaSaleOrder;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author: 向伟典
 * @date: 2023/9/13 10:59
 * @Description: ${description}
 */
public interface VvSaSaleOrderMapper extends BaseMapper<VvSaSaleOrder> {

    VvSaSaleOrder byCodeSale(@Param("code") String code);

    int inquireIsExist(@Param("documentnumber")String documentnumber);

    void insertVVSaleOrder(VvSaSaleOrder vvSaSaleOrder);

    void deleteSaleOrderId(String voucherID);

    List<VvSaSaleOrder> saleOrderNotNullList();

    List<VvSaSaleOrder> byChangedateList();

    VvSaSaleOrder byOrderDocumentnumber(Integer salesorderid);

    List<VvSaSaleOrder> byAudit();

    List<VvSaSaleOrder> saleOrderNotNullDayList();

    List<VvSaSaleOrder> byAlready();
}